package model.xpdl2
{
	public class PackageHeader
	{
		private var vendor:Vendor;
		
		private var xpdlVersion:XPDLVersion;
		
		private var created:Created;
		
		private var creator:Creator;
		
		private var description:Description;
		
		public function PackageHeader()
		{
			vendor=new Vendor();
			xpdlVersion=new XPDLVersion();
			created=new Created();
			creator=new Creator();
			description=new Description();
		}
		
		public function genXML():String{
			var xml:String;
			var nsprefix:String="xpdl2";
			xml="<"+nsprefix+":PackageHeader>\n"
			xml+=xpdlVersion.genXML();
			xml+=vendor.genXML();
			xml+=created.genXML();
			xml+=creator.genXML();
			xml+=description.genXML();
			xml+="</"+nsprefix+":PackageHeader>\n";
			return xml;
		}
		
		public function getVendor():Vendor{
			return this.vendor;
		}
		
		public function setVendor(vendor:Vendor):void{
			this.vendor=vendor;
		}
		
		public function setXpdlVersion(version:XPDLVersion):void{
			this.xpdlVersion=version;
		}
		
		public function getXpdlVersion():XPDLVersion{
			return this.xpdlVersion;
		}
		
		public function getCreator():Creator{
			return this.creator;
		}
		
		public function setCreator(creator:Creator):void{
			this.creator=creator;
		}
		
		public function setCreated(created:Created):void{
			this.created=created;
		}
		
		public function getCreated():Created{
			return this.created;
		}
		
		public function getDescription():Description{
			return this.description;
		}
		
		public function setDescription(des:Description):void{
			this.description=des;
		}

	}
}